<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>

    <!--reset.min.css 根据实际情况引入，如果你有自己的初始化样式表可以不引入当前样式-->

    <link href="/static/plugins/InsdepUI/reset.min.css" rel="stylesheet" type="text/css">
    <!--reset.min.css 根据实际情况引入，如果你有自己的初始化样式表可以不引入当前样式-->
    <link rel="stylesheet" type="text/css" href="/static/plugins/InsdepUI/theme.default/master.css">
    <link href="/static/plugins/InsdepUI/icon.css" rel="stylesheet" type="text/css">
    <link href="/static/plugins/InsdepUI/easyui_full.css" rel="stylesheet" type="text/css">
    <link href="/static/plugins/InsdepUI/icon.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="/static/plugins/InsdepUI/jquery-1.11.3.min.js"></script>
    <script type="text/javascript" src="/static/plugins/InsdepUI/jquery.easyui-1.5.2.min.js"></script>
    <script type="text/javascript" src="/static/plugins/InsdepUI/insdep-extend.min.js"></script>
    <script type="text/javascript" src="/static/js/clientService/clientTrace.js"></script>
</head>
<body>
<table id="clientTrace_datagrid"></table>
<div id="clientTrace_toolbar">
    <a class="easyui-linkbutton" iconCls="icon-edit" plain="true" data-cmd="edit">编辑</a>
    <a class="easyui-linkbutton" iconCls="icon-view" plain="true" data-cmd="view">查看</a>
    <a class="easyui-linkbutton" iconCls="icon-reload" plain="true" data-cmd="reload">刷新</a>
    <a class="easyui-linkbutton" iconCls="icon-audit" plain="true" data-cmd="audit">审核</a>
</div>
<div id="clientTraceAdd_dialog">
    <form id="clientTraceAdd_form" method="post">
        <%--<input type="hidden" name="clientId">--%>
        <%--<input type="hidden" name="client.id">--%>
        <input type="hidden" name="id">
        <table align="center" style="margin-top: 10px;font-size: 12px" cellspacing="10px" width="600px"
               cellpadding="5px">

            <tr align="right" style="height: 30px">
                <td><span style="font-size: 14px">学员:</span></td>
                <td><input class="easyui-combobox" name="client.id"
                           data-options="valueField:'id',textField:'name',url:'/client/listAll.do',panelHeight:'auto'"
                           style="width: 130px;height: 22px;"/></td>
                <td><span style="font-size: 14px">QQ:</span></td>
                <td><input class="easyui-textbox" name="qq" style="width: 120px;height: 22px;"/></td>
                <td><span style="font-size: 14px">Email:</span></td>
                <td><input class="easyui-textbox" name="email" style="width: 120px;height: 22px;"/></td>
            </tr>
            <tr align="right" style="height: 30px">
                <td><span style="font-size: 14px">电话:</span></td>
                <td><input class="easyui-textbox" name="tel" style="width: 130px;height: 22px;"/></td>
                <td><span style="font-size: 14px">当前状态:</span></td>
                <td><input class="easyui-combobox" name="state.id" style="width: 120px;height: 22px;"
                           data-options="url:'/systemDictionaryItem/getItemBySn.do?sn=state',textField:'name',valueField:'id',panelHeight:'auto'"/>
                </td>
                <td><span style="font-size: 14px">营销人员:</span></td>
                <td><input class="easyui-combobox" name="saleman.id"
                           data-options="valueField:'id',textField:'username',url:'/employee/listAll.do',panelHeight:'auto'"
                           style="width: 120px;height: 22px;"/></td>
            </tr>
            <tr align="right" style="height: 30px">
                <td><span style="font-size: 14px">上次跟进:</span></td>
                <td><input class="easyui-datetimebox" name="lastTraceTime" style="width: 130px;height: 22px;"/></td>
                <td><span style="font-size: 14px">所属学校:</span></td>
                <td><input class="easyui-combobox" name="university.id"
                           data-options="valueField:'id',textField:'name',url:'/university/selectAll.do',panelHeight:'auto'"
                           style="width: 120px;height: 22px;"/></td>
                <td><span style="font-size: 14px">意向班级:</span></td>
                <td><input class="easyui-combobox" name="clz.id" style="width: 120px;height: 22px;"
                           data-options="url:'/class/selectAll.do',textField:'name',valueField:'id',panelHeight:'auto'"/>
                </td>
            </tr>
            <tr align="right" style="height: 30px">
                <td><span style="font-size: 14px">约访日期:</span></td>
                <td><input id="appointTime" class="easyui-datetimebox" name="appointTime"
                           style="width: 130px;height: 22px;"/></td>
                <td><span style="font-size: 14px">交流方式:</span></td>
                <td><input class="easyui-combobox" name="communicationMethod.id"
                           data-options="valueField:'id',textField:'name',url:'/systemDictionaryItem/getItemBySn.do?sn=communicationMethod',panelHeight:'auto'"
                           style="width: 120px;height: 22px;"/></td>
                <td><span style="font-size: 14px">意向程度:</span></td>
                <td><input class="easyui-combobox" name="intentionDegree.id" style="width: 120px;height: 22px;"
                           data-options="url:'/systemDictionaryItem/getItemBySn.do?sn=intentionDegree',textField:'name',valueField:'id',panelHeight:'auto'"/>
                </td>
            </tr>
            <tr align="right" style="height: 30px">
                <td><span style="font-size: 14px">下次跟进:</span></td>
                <td><input id="nextTraceTime" class="easyui-datetimebox" name="nextTraceTime"
                           style="width: 130px;height: 22px;"/></td>
                <td><span style="font-size: 14px">跟进目的:</span></td>
                <td><input class="easyui-combobox" name="tracePurpose.id" style="width: 120px;height: 22px;"
                           data-options="url:'/systemDictionaryItem/getItemBySn.do?sn=tracePurpose',textField:'name',valueField:'id',panelHeight:'auto'"/>
                </td>
                <td><span style="font-size: 14px">咨询时长:</span></td>
                <td><input class="easyui-textbox" data-options="value:'分钟'" name="consultDuration"
                           style="width: 120px;height: 22px;"/></td>
            </tr>
            <tr align="right" style="height: 80px">
                <td><span style="font-size: 14px">摘要:</span></td>
                <td colspan="6" align="left"><input type="textarea" name="focusProblem"
                                                    style="height: 50px;width: 540px"/>
                </td>
            </tr>
            <tr align="right">
                <td><span style="font-size: 14px">交流内容:</span></td>
                <td colspan="6" align="left"><input type="textarea" name="remark" style="height: 50px;width: 540px"/>
                </td>
            </tr>
        </table>
    </form>
</div>
<div id="client_btns">
    <a class="easyui-linkbutton" iconCls="icon-save" plain="true" data-cmd="save">保存</a>
    <a class="easyui-linkbutton" iconCls="icon-cancel" plain="true" data-cmd="cancel">取消</a>
</div>
<%--<div id="clientQuery_btns">--%>
<%--<a class="easyui-linkbutton" iconCls="icon-ok" plain="true" data-cmd="submitForm">提交</a>--%>
<%--<a class="easyui-linkbutton" iconCls="icon-cancel" plain="true" data-cmd="cancelQuery">取消</a>--%>
<div id="audit_dialog">
    <form id="audit_form" method="post">
        <input type="hidden" name="id">
        <table align="center" style="margin-top: 10px;font-size: 12px" cellspacing="10px" width="180px"
               cellpadding="5px">
            <tr align="right" style="height: 30px">
                <td><span style="font-size: 14px">学员:</span></td>
                <td><input class="easyui-textbox" readonly="readonly" name="client.name"
                           style="width: 120px;height: 22px;"/></td>
                </td>
            </tr>
            <tr align="right" style="height: 30px">
                <td><span style="font-size: 14px">咨询人员:</span></td>
                <td><input class="easyui-combobox" name="inputUser.id" id="inputUser"
                           style="width: 120px;height: 22px;"
                           data-options="valueField:'id',textField:'username',url:'/employee/listAll.do',panelHeight:'auto'"/>
                </td>
            </tr>
            <tr align=" right" style="height: 30px">
                <td><span style="font-size: 14px">交流方式:</span></td>
                <td><input class="easyui-textbox" readonly="readonly" name="communicationMethod.name"
                           style="width: 120px;height: 22px;"/>
                </td>
            </tr>
            <tr align="right" style="height: 30px">
                <td><span style="font-size: 14px">评分:</span></td>
                <td><input class="easyui-combobox" name="score.id"
                           data-options="valueField:'id',textField:'name',url:'/systemDictionaryItem/getItemBySn.do?sn=score',panelHeight:'auto'"
                           style="width: 120px;height: 22px;"/></td>
                </td>
            </tr>
            <tr align="right" style="height: 30px">
                <td><span style="font-size: 14px">审核说明:</span></td>
                <td><input class="easyui-textbox" name="explaination" style="width: 120px;height: 60px;"/>
                </td>
            </tr>
        </table>
    </form>
</div>
<div id="audit_btns">
    <a class="easyui-linkbutton" iconCls="icon-save" plain="true" data-cmd="auditSubmit">保存</a>
    <a class="easyui-linkbutton" iconCls="icon-cancel" plain="true" data-cmd="cancelAudit">取消</a>
</div>
</table>
</body>
</html>
